/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
namespace DGZImp.DemoProject.DomainModels;

[Entity(TableCnName = "订单明细", TableName = "Demo_OrderList", DBServer = "ServiceDbContext")]
public partial class Demo_OrderList : ServiceEntity
{
    /// <summary>
    ///
    /// </summary>
    [SugarColumn(IsPrimaryKey = true)]
    [Key]
    [Display(Name = "OrderList_Id")]
    [Column(TypeName = "uniqueidentifier")]
    [Required(AllowEmptyStrings = false)]
    public Guid OrderList_Id { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name = "Order_Id")]
    [Column(TypeName = "uniqueidentifier")]
    public Guid? Order_Id { get; set; }

    /// <summary>
    ///商品id
    /// </summary>
    [Display(Name = "商品id")]
    [Column(TypeName = "uniqueidentifier")]
    [Editable(true)]
    public Guid? GoodsId { get; set; }

    /// <summary>
    ///商品编号
    /// </summary>
    [Display(Name = "商品编号")]
    [MaxLength(100)]
    [Column(TypeName = "nvarchar(100)")]
    [Editable(true)]
    [Required(AllowEmptyStrings = false)]
    public string GoodsCode { get; set; }

    /// <summary>
    ///商品名称
    /// </summary>
    [Display(Name = "商品名称")]
    [MaxLength(100)]
    [Column(TypeName = "nvarchar(100)")]
    [Editable(true)]
    [Required(AllowEmptyStrings = false)]
    public string GoodsName { get; set; }

    /// <summary>
    ///商品图片
    /// </summary>
    [Display(Name = "商品图片")]
    [MaxLength(500)]
    [Column(TypeName = "nvarchar(500)")]
    [Editable(true)]
    public string Img { get; set; }

    /// <summary>
    ///商品规格
    /// </summary>
    [Display(Name = "商品规格")]
    [MaxLength(100)]
    [Column(TypeName = "nvarchar(100)")]
    [Editable(true)]
    public string Specs { get; set; }

    /// <summary>
    ///单价
    /// </summary>
    [Display(Name = "单价")]
    [DisplayFormat(DataFormatString = "18,2")]
    [Column(TypeName = "decimal")]
    [Editable(true)]
    [Required(AllowEmptyStrings = false)]
    public decimal Price { get; set; }

    /// <summary>
    ///数量
    /// </summary>
    [Display(Name = "数量")]
    [Column(TypeName = "int")]
    [Editable(true)]
    [Required(AllowEmptyStrings = false)]
    public int Qty { get; set; }

    /// <summary>
    ///逻辑删除标志
    /// </summary>
    [Display(Name = "逻辑删除标志")]
    [Column(TypeName = "int")]
    public int? IsValid { get; set; }

    /// <summary>
    ///备注
    /// </summary>
    [Display(Name = "备注")]
    [MaxLength(500)]
    [Column(TypeName = "nvarchar(500)")]
    [Editable(true)]
    public string Remarks { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name = "CreateId")]
    [Column(TypeName = "bigint")]
    public long? CreateId { get; set; }

    /// <summary>
    ///创建人
    /// </summary>
    [Display(Name = "创建人")]
    [MaxLength(30)]
    [Column(TypeName = "nvarchar(30)")]
    public string Creator { get; set; }

    /// <summary>
    ///创建时间
    /// </summary>
    [Display(Name = "创建时间")]
    [Column(TypeName = "datetime")]
    public DateTime? CreateTime { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name = "ModifyId")]
    [Column(TypeName = "bigint")]
    public long? ModifyId { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name = "Modifier")]
    [MaxLength(30)]
    [Column(TypeName = "nvarchar(30)")]
    public string Modifier { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name = "ModifyTime")]
    [Column(TypeName = "datetime")]
    public DateTime? ModifyTime { get; set; }


}